package com.order.entity;

/**
 * Detail entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Detail implements java.io.Serializable {

	// Fields

	private Integer id;
	private Goods goods;
	private Order order;
	private Integer amount;

	// Constructors

	/** default constructor */
	public Detail() {
	}

	/** full constructor */
	public Detail(Goods goods, Order order, Integer amount) {
		this.goods = goods;
		this.order = order;
		this.amount = amount;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Goods getGoods() {
		return this.goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public Order getOrder() {
		return this.order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Integer getAmount() {
		return this.amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

}